<%@ page import="com.nebula.common.Const" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<html>
<head>
    <jsp:include page="../header.jsp"/>
    <title><%=Const.SYSTEM_NAME%>-密保问题</title>
    <style>
        .center {
            width: 80%;
            height: 80%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 10px;
        }
    </style>
</head>
<body>
<div class="container-fluid p-20">
    <div class="row">
        <div class="col-xs-7">
            <table id="security-dg"></table>
        </div>
    </div>
</div>
<div id="add" style="overflow: hidden;position: relative">
    <div class="center">
        <form action="" class="form-horizontal mt-10" id="qaForm">
            <div class="form-group">
                <label for="question" class="col-sm-2 control-label">安全问题</label>
                <div class="col-sm-10">
                    <input type="text" min="0" step="10" class="form-control" id="question" name="question"
                           placeholder="安全问题" autocomplete="off">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="button" class="btn btn-primary" id="addQuestion"><i class="fa fa-plus"></i>&nbsp;
                        添加
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>
<div id="edit" style="overflow: hidden;position: relative">
    <div class="center">
        <form action="" class="form-horizontal mt-10" id="qaEditForm">
            <div class="form-group">
                <label for="question" class="col-sm-2 control-label">安全问题</label>
                <div class="col-sm-10">
                    <input type="text" min="0" step="10" class="form-control" id="newQuestion" name="question"
                           placeholder="安全问题" autocomplete="off">
                </div>
                <input type="hidden" id="qaId" name="qaId">
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="button" class="btn btn-primary" id="editQuestion"><i class="fa fa-save"></i>&nbsp;
                        保存
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>
<jsp:include page="../footer.jsp"/>
<script src="${pageContext.request.contextPath}/js/custom/security-question.js"></script>
</body>
</html>